from django.conf.urls import url
from . import views
from rest_framework_jwt.views import obtain_jwt_token


urlpatterns = [

    url(r"^usernames/(?P<username>\w{5,20})/count/$",views.RegisterUsernameView.as_view()),
    url(r"^mobilenames/(?P<mobile>1[345789]\d{9})/count/$",views.RegisterMobilenameView.as_view()),

    # 添加登陆认证
    url(r'^auths/',obtain_jwt_token),

    url(r'^infos/',views.UserCenterInfoView.as_view()),

    # 邮箱的url
    url(r'emails/$',views.UserUpdateEmailView.as_view()),

    # 增加地址的url
    url(r'^addresses/$',views.AddressView.as_view()),
    url(r"^$",views.RegisterCreateUserView.as_view()),


    url(r"^emails/verification/$",views.UserEmailActiveView.as_view())

]
